package org.jeecg.modules.golf.plan.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.exception.JeecgBootException;
import org.jeecg.modules.golf.plan.entity.PlanType;

import java.util.List;

/**
 * @Description: 方案
 * @Author: jeecg-boot
 * @Date:   2020-10-20
 * @Version: V1.0
 */
public interface IPlanTypeService extends IService<PlanType> {


    /**根节点父ID的值*/
    public static final String ROOT_PID_VALUE = "0";

    /**树节点有子节点状态值*/
    public static final String HASCHILD = "1";

    /**树节点无子节点状态值*/
    public static final String NOCHILD = "0";

    /**新增节点*/
    void addPlanType(PlanType planType);

    /**修改节点*/
    void updatePlanType(PlanType planType) throws JeecgBootException;

    /**删除节点*/
    void deletePlanType(String id) throws JeecgBootException;

    /**查询所有数据，无分页*/
    List<PlanType> queryTreeListNoPage(QueryWrapper<PlanType> queryWrapper);

}
